
package br.com.senacrs.control;

import java.util.List;

public interface ControlCR <T> {
    
    public void insert(T objeto);

    public void delete(T objeto);

    public void update(T objeto);

    public List<T> selectAll();

    public List<T> selectAllOrderBy(String order);

    public T selectOne(Long id);

    public T selectOneGet(Long id);

    public List<T> selectWhere(String criterio, String string);

    public List<T> selectWhere(String criterio, Long valor); 

    public List<T> selectWhere(String criterio, String criterioJoin, Long valor);
}
